package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Studentarrivedinfo;
import com.grad.why.studentsystem.domain.StudentarrivedinfoExample;
import com.grad.why.studentsystem.domain.current.CurrentClassArriveInfos;
import com.grad.why.studentsystem.domain.current.CurrentClassinfo;
import com.grad.why.studentsystem.domain.current.CurrentStudentArrivedInfo;
import com.grad.why.studentsystem.domain.current.CurrentStudentArrivedRecordeAnalyze;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentarrivedinfoMapper {
    int countByExample(StudentarrivedinfoExample example);

    int deleteByExample(StudentarrivedinfoExample example);

    int deleteByPrimaryKey(Long studentarrivedinfoid);

    int insert(Studentarrivedinfo record);

    int insertSelective(Studentarrivedinfo record);

    List<Studentarrivedinfo> selectByExample(StudentarrivedinfoExample example);

    Studentarrivedinfo selectByPrimaryKey(Long studentarrivedinfoid);

    int updateByExampleSelective(@Param("record") Studentarrivedinfo record, @Param("example") StudentarrivedinfoExample example);

    int updateByExample(@Param("record") Studentarrivedinfo record, @Param("example") StudentarrivedinfoExample example);

    int updateByPrimaryKeySelective(Studentarrivedinfo record);

    int updateByPrimaryKey(Studentarrivedinfo record);

    Studentarrivedinfo selectStudentArrivedInfoByRecordIdAndSid(@Param("rId") Long rId,@Param("sid") Integer sid);

    List<CurrentStudentArrivedInfo> getStudentArrivedInfoList(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getStudentArrivedInfoListLength(@Param("search") String search);

    List<CurrentStudentArrivedRecordeAnalyze> getCurrentStudentArrivedRecordAnalyzeList(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getCurrentStudentArrivedRecordAnalyzeListLength(@Param("search") String search);

    List<CurrentClassArriveInfos> getCurrentClassArriveInfos(@Param("offset") int offset, @Param("limit") int limit, @Param("search") String search);

    long getCurrentClassArriveInfosLength(@Param("search") String search);

    List<CurrentClassArriveInfos> getAllCurrentClassArriveInfos();
}